package net.lanelife.casino.caipiao.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import net.lanelife.casino.common.entity.annotation.Checked;
import net.lanelife.casino.common.entity.support.CheckableEntity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "TB_CRAWLER_CONFIG")
public class CrawlerConfig extends CheckableEntity<Integer> {

	private static final long serialVersionUID = 764386283936052841L;
	
	@Checked
	@Column(name = "GAME_ID", nullable = false)
	private Integer gameId;
	
	@Checked
	@Column(name = "GAME_NAME", length = 10, nullable = false)
	private String gameName;
	
	@Checked
	@Column(name = "URL", length = 255, nullable = false)
	private String url;
	
	@Checked
	@Column(name = "EXPRESSION", length = 255, nullable = false)
	private String expression;
	
	@Checked
	@Column(name = "GROUPINDEXS", length = 255, nullable = false)
	private String groupIndexs;
	
	@Checked
	@Column(name = "DELAY", nullable = false)
	private Integer delay;
	
	@Checked
	@Column(name = "TIMEOUT", nullable = false)
	private Integer timeout;
	
	@Checked
	@Column(name = "AVAILABLE", nullable = false)
	private Boolean available = Boolean.FALSE;

	public Integer getGameId() {
		return gameId;
	}

	public void setGameId(Integer gameId) {
		this.gameId = gameId;
	}

	public String getGameName() {
		return gameName;
	}

	public void setGameName(String gameName) {
		this.gameName = gameName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getExpression() {
		return expression;
	}

	public void setExpression(String expression) {
		this.expression = expression;
	}

	public String getGroupIndexs() {
		return groupIndexs;
	}

	public void setGroupIndexs(String groupIndexs) {
		this.groupIndexs = groupIndexs;
	}

	public Integer getDelay() {
		return delay;
	}

	public void setDelay(Integer delay) {
		this.delay = delay;
	}

	public Integer getTimeout() {
		return timeout;
	}

	public void setTimeout(Integer timeout) {
		this.timeout = timeout;
	}

	public Boolean getAvailable() {
		return available;
	}

	public void setAvailable(Boolean available) {
		this.available = available;
	}

}
